package vip.zhenzicheng;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhenzicheng
 * @date ${YEAR}-${MONTH}-${DAY} $HOUR:$MINUTE
 */
@SpringBootApplication
public class ConsumerApplication {

  // 未改造为dubbo之前默认使用restTemplate发送http请求
  @Bean
  public RestTemplate restTemplate() {
    return new RestTemplate();
  }

  public static void main(String[] args) {
    SpringApplication.run(ConsumerApplication.class, args);
  }
}